class CreateHours < ActiveRecord::Migration
  def self.up
    create_table :hours do |t|
      t.references :user
      t.text :notes
      t.string :ip
      t.string :in_or_out

      t.timestamps
    end
    add_index :hours, [:in_or_out]
    add_index :hours, [:user_id]
  end

  def self.down
    drop_table :hours
  end
end
